package com.sip.interphone.enums;

/**
 * @Author zc
 * @Description 操作类型
 * @Date 2023/7/3 16:08
 * @Version 1.0
 */
public enum OperateEnum {

    DH("1", "动火作业"),
    SXKJ("2", "受限空间作业"),
    MBCD("3", "盲板抽堵作业"),
    GC("4", "高处作业"),
    DZ("5", "吊装作业"),
    LSYD("6", "临时用电作业"),
    DT("7", "动土作业"),
    DL("8", "断路作业"),

    // 子类类型
    QTFX("101", "气体分析"),
    AQCS("102", "安全措施"),
    SPLZ("103", "审批流转"),


    QYRY("201", "企业人员信息"),
    SCSS("202", "生产设施"),
    RYZGZW("203", "人员在岗在位"),


    SCYFCNK("301", "安全生产责任承诺卡"),
    SCYFYZK("302", "作业场所岗位风险应知卡"),
    SCYFCZK("303", "应急处置卡"),
    SCYFFYSST("304", "风险四色图"),
    CBSCBSGL("401", "承包商管理"),
    CBSZHXX("402", "承包商相关证书信息"),
    CBSRYXX("403", "承包商人员信息"),


    XJZSHTB("501", "巡检组数据同步"),
    XJRYSHTB("502", "巡检人员数据同步")
    ;


    private String code;
    private String value;
    OperateEnum(String code, String value){
        this.code = code;
        this.value = value;
    }

    public String getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }

    public static String getValue(String code) {
        for (OperateEnum item : values()) {
            if (item.getCode().equals(code)) {
                return item.getValue();
            }
        }
        return "";
    }
}
